﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialTree.aspx.cs" Inherits="HQWeb.Resources.MaterialTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function SelectClick() {
            var rec = new Object();
            rec.id = document.getElementById("hidID").value;
            rec.name = document.getElementById("hidName").value;
            parent.window.returnValue = rec;
            parent.window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
        <tr>
                <td align="left" valign="middle">
                    <span style="font-size: 10px">所选元素：</span>
                    <asp:Label runat="server" ID="labSelected" ForeColor="#3399ff" Font-Size="Smaller"></asp:Label>
                </td>
                <td align="right" valign="middle">
                   <%-- <asp:Button runat="server" ID="btnSave" Text="确 定" OnClientClick="SelectClick()" />--%>
                   <input type="button" id="select" value="确 定" onclick="SelectClick()" />
                </td>
            </tr>
            <tr style="height: 350px">
                <td width="100%" valign="top" colspan="2">
                    <hr />
        <asp:TreeView ID="LeftTree" runat="server" ShowLines="True" Font-Size="10pt" ImageSet="XPFileExplorer"
            NodeIndent="15" OnSelectedNodeChanged="LeftTree_SelectedNodeChanged">
            <ParentNodeStyle Font-Bold="False" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                VerticalPadding="0px" />
            <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                NodeSpacing="0px" VerticalPadding="2px" />
        </asp:TreeView>
          </td>
            </tr>
        </table>
    </div>
    <div style="display: none">
    <asp:HiddenField runat="server" ID="hidID" />
    <asp:HiddenField runat="server" ID="hidName" />
    </div>
    </form>
</body>
</html>
